#ifndef Scenic_Renderer_Canvas_h
#define Scenic_Renderer_Canvas_h

#include "Resource.h"


namespace Scenic 
{ 
namespace Renderer
{

class Canvas : public Resource
{
public:
	Device *device;
#ifdef DIRECTX
	HWND hwnd;

	Canvas(HWND hwnd);
#endif
#ifdef OPT_X11
	Window window;

	Canvas(Window window);
#endif
	~Canvas();

	void reset();

	static Canvas *get(int id);
};

}
}

#endif
